﻿using AutoMapper;
using SIG.InputModel.Front.Identity;
using SIG.InputModel.Front.Shipping;
using SIG.Model;
using SIG.Model.Ads;
using SIG.Model.Articles;
using SIG.Model.Identity;
using SIG.Model.Shipping;
using SIG.Model.Store;
using SIG.ViewModel.Front.Articles;
using SIG.ViewModel.Front.Ads;
using SIG.ViewModel.Front.Identity;
using SIG.ViewModel.Front.Menus;
using SIG.ViewModel.Front.Shipping;
using SIG.ViewModel.Front.Store;
using System;
using SIG.Model.Announcements;
using SIG.ViewModel.Front.Announcements;
using SIG.Model.Case;
using SIG.ViewModel.Front.Clients;
using SIG.Model.Videos;
using SIG.ViewModel.Front.Videos;

namespace SIG.WebMVC.Mappings
{
    public class FrontMappingProfile : Profile
    {
        [Obsolete]
        protected override void Configure()
        {
            CreateMap<Goods, GoodsVM>();
            CreateMap<Goods, GoodsDetailVM>();
            
            CreateMap<GoodsVM, Goods>();
            CreateMap<GoodsCategory, GoodsCategoryVM>();
            CreateMap<GoodsCategoryVM, GoodsCategory>();

            CreateMap<Carousel, CarouselVM>();
            CreateMap<CarouselVM, Carousel>();

            CreateMap<Article, ArticleVM>();
         
            CreateMap<Menu, MenuVM>();

            CreateMap<RecipientInfo, RecipientInfoVM>();
            CreateMap<RecipientInfo, RecipientInfoIM>();
            CreateMap<RecipientInfoIM, RecipientInfo>();

            CreateMap<User, UserVM>();
            CreateMap<User, ProfileIM>();
            CreateMap<ProfileIM,User>();

            CreateMap<Announcement, AnnouncementVM>();
            CreateMap<Client, ClientVM>();
            CreateMap<Video, VideoVM>();

        }       
        

    }
}